<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-html"  prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    
    <title>助学岗位发布</title>
<link href="CSS/Accessible_Design.css" rel="stylesheet" type="text/css" />    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" language="java">
	
	function checkNumber()
	{
	var applyPassNumber="${applyPassNumber}";

	var peopleNumber="${peopleNum}"; 
	
	if(applyPassNumber==peopleNumber){
		alert("此工作的人数已够，不能在申请");
		return false;
	}
	checkSession();
	}
	function returnUp(){
		auditId.action='myapplyparttime.do';
		auditId.submit();
	}
	
	
	function checkSession(){
	var userId="<%=request.getSession().getAttribute("allUserId") %>";
	if(userId=="")
	{return false ;
	}
	}
	</script>
	
  </head>
  
  <body>
  <html:form action="stuapplypt.do" styleId="auditId">
     <table width="636" border="1" cellspacing="0">
  <tr>
    <td colspan="4"><font color="#000066" size="+3" >助学岗位发布</font></td>
    </tr>
  <tr>
    <td width="65">用人单位 </td>
    <td width="170">
   <html:hidden  property="jobId" value="${jobId}"/>
    ${company}
    <td width="65">联系人     </td>
    <td width="221">
     ${contactName}
  </tr>
  <tr>
    <td>联系电话 </td>
    <td>
     ${conPhone}
    <td>电子邮箱      </td>
    <td>
     ${emile}
  </tr>
  <tr>
    <td>岗位性质      </td>
    <td>
	<c:if test="${status == 1}">
		<c:out value=" 固定时间" />
	</c:if>
	<c:if test="${status == 2}">
		<c:out value="兼职" />
	</c:if>
	
	</td>
    <td>岗位数量
    <br>申请人数
    <br>申请通过人数
    </td>
    <td>
  	 ${peopleNum}
    <br>
    ${applyNumber}
    <br>
    ${applyPassNumber}
	</td>
  </tr>
  <tr>
    <td colspan="2">岗位时间
     ${startTime}</td>
    <td colspan="2">到
     ${endTime}</td>
  </tr>
  <tr>
    <td colspan="4"><p>筹金 
       ${salary}
    </p>      </td>
   
    </tr>
  <tr>
    <td colspan="2"><p>岗位工作内容 :</p>
      <p>
        ${content}
      </p></td>
    <td colspan="2"><p>备注 : 
      </p>
      <p>
       ${other}
        </p></td>
  </tr>
  <tr>
    <td colspan="4">
    <html:submit value="申请此岗位"  onclick="return checkNumber();"  ></html:submit> 
    <html:button property="" value="返回" onclick="returnUp();"></html:button> 
    
    </td>
    </tr>
</table>
</html:form>
<c:if test="${status eq 1}">checked</c:if>
	
  </body>
</html>
